package com.xyz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xyz.entity.dto.LogLoginDTO;
import com.xyz.entity.dto.LogOperationDTO;
import com.xyz.entity.request.*;
import com.xyz.entity.response.LoginResponse;
import com.xyz.entity.vo.ListUserVO;

/**
 * @author 夏永泽
 * @date 2022/4/1
 */
public interface SystemService {
    LoginResponse login(LoginRequest request);

    Page<ListUserVO> listUsers(Integer page, Integer limit);

    ListUserVO getUser(String idNumber);

    void updateUser(UpdateUserRequest request);

    void addUser(AddUserRequest request);

    void deleteUser(Long id);

    void changePassword(ChangePasswordRequest request);

    void logLogin(LogLoginDTO dto);

    void logOperation(LogOperationDTO dto);
}
